#include "gt32f030.h"
#include "system_flash.h"
#include "system_interrupts.h"

/******************************************************************************/
/*           Cortex-M0P Processor Interruption and Exception Handlers         */
/******************************************************************************/
/**
  * @brief This function handles Non maskable interrupt.
  */
__attribute__((section("MAPPING"))) void NMI_Handler(void)
{
    /* USER CODE BEGIN NonMaskableInt_IRQn */
    USER_LVD_IRQHandler();
    /* USER CODE END NonMaskableInt_IRQn */
}

/**
  * @brief This function handles Hard fault interrupt.
  */
__attribute__((section("MAPPING"))) void HardFault_Handler(void)
{
    /* USER CODE BEGIN HardFault_IRQn */

    /* USER CODE END HardFault_IRQn */

}

/**
  * @brief This function handles System service call via SWI instruction.
  */
__attribute__((section("MAPPING"))) void SVC_Handler(void)
{
    /* USER CODE BEGIN SVCall_IRQn */

    /* USER CODE END SVCall_IRQn */
}

/**
  * @brief This function handles Pendable request for system service.
  */
__attribute__((section("MAPPING"))) void PendSV_Handler(void)
{
    /* USER CODE BEGIN PendSV_IRQn */

    /* USER CODE END PendSV_IRQn */
}

/**
  * @brief This function handles System tick timer.
  */
__attribute__((section("MAPPING"))) void SysTick_Handler(void)
{
    /* USER CODE BEGIN SysTick_IRQn */

    /* USER CODE END SysTick_IRQn */
}





__attribute__((section("MAPPING"))) void GPIOA_IRQHandler(void) {

	FLASH_ReleaseDpPowerDown();
	USER_GPIOA_IRQHandler();
}

__attribute__((section("MAPPING"))) void GPIOB_IRQHandler(void)
{
	USER_GPIOB_IRQHandler();
}

__attribute__((section("MAPPING"))) void GPIOF_IRQHandler(void)
{

	USER_GPIOF_IRQHandler();
}

__attribute__((section("MAPPING"))) void UART0_IRQHandler(void)
{
	USER_UART0_IRQHandler();
}

__attribute__((section("MAPPING"))) void UART1_IRQHandler(void)
{
	USER_UART1_IRQHandler();
}
__attribute__((section("MAPPING"))) void XSPI_IRQHandler(void)
{
	USER_XSPI_IRQHandler();
}

__attribute__((section("MAPPING"))) void QSPI2_IRQHandler(void)
{
	USER_QSPI2_IRQHandler();
}

__attribute__((section("MAPPING"))) void QSPI1_IRQHandler(void)
{
	USER_QSPI1_IRQHandler();
}

__attribute__((section("MAPPING"))) void I2C_IRQHandler(void)
{
	USER_I2C_IRQHandler();
}


__attribute__((section("MAPPING"))) void TIM5_IRQHandler(void)
{
	USER_TIM5_IRQHandler();
}

__attribute__((section("MAPPING"))) void TIM10_IRQHandler(void)
{
	USER_TIM10_IRQHandler();
}

__attribute__((section("MAPPING"))) void TIM11_IRQHandler(void)
{
	USER_TIM11_IRQHandler();
}

__attribute__((section("MAPPING"))) void LPTIM_IRQHandler(void)
{
	USER_LPTIM_IRQHandler();
}

__attribute__((section("MAPPING"))) void TIM4_IRQHandler(void)
{
	USER_TIM4_IRQHandler();
}

__attribute__((section("MAPPING"))) void TIM3_IRQHandler(void)
{
	USER_TIM3_IRQHandler();
}

__attribute__((section("MAPPING"))) void TIM2_IRQHandler(void)
{
	USER_TIM2_IRQHandler();
}

__attribute__((section("MAPPING"))) void VcoreFall_IRQHandler(void)
{
	USER_VcoreFall_IRQHandler();
}

__attribute__((section("MAPPING"))) void VcoreRise_IRQHandler(void)
{
	USER_VcoreRise_IRQHandler();
}

__attribute__((section("MAPPING"))) void IWDG_IRQHandler(void)
{
	USER_IWDG_IRQHandler();
}

__attribute__((section("MAPPING"))) void ADC_IRQHandler(void)
{

	USER_ADC_IRQHandler();
}

__attribute__((section("MAPPING"))) void VC1_IRQHandler(void)
{

	USER_VC1_IRQHandler();
}

__attribute__((section("MAPPING"))) void VC2_IRQHandler(void)
{

	USER_VC2_IRQHandler();
}

__attribute__((section("MAPPING"))) void AWK_IRQHandler(void)
{

	USER_AWK_IRQHandler();
}
__attribute__((section("MAPPING"))) void DMA_IRQHandler(void)
{

	USER_DMA_IRQHandler();
} 
